//
//  SCAppDelegate.m
//  SmartCall
//
//  Created by Maximus on 1/6/14.
//  Copyright (c) 2014 Nguyen Xuan Hoc. All rights reserved.
//

#import "SCAppDelegate.h"
#import "SCHistoryViewController.h"
#import "SCContactViewController.h"
#import "SCKeyBoardViewController.h"
#import "SCVoiceSettingViewController.h"

@implementation SCAppDelegate

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{

    self.window = [[UIWindow alloc]initWithFrame:[[UIScreen mainScreen] bounds]];

    
    UITabBarController *tabbarController = [[UITabBarController alloc]init];
    SCHistoryViewController *historyViewController = [[SCHistoryViewController alloc]init];
    SCContactViewController *contactViewController = [[SCContactViewController alloc]init];
    SCKeyBoardViewController *keyBoardViewController = [[SCKeyBoardViewController alloc]init];
    SCVoiceSettingViewController *voiceSettingController = [[SCVoiceSettingViewController alloc]init];
    
    historyViewController.tabBarItem = [[UITabBarItem alloc]initWithTitle:@"History" image:nil selectedImage:nil];
    contactViewController.tabBarItem = [[UITabBarItem alloc]initWithTitle:@"Contact" image:nil selectedImage:nil];
    keyBoardViewController.tabBarItem = [[UITabBarItem alloc]initWithTitle:@"KeyBoard" image:nil selectedImage:nil];
    voiceSettingController.tabBarItem = [[UITabBarItem alloc]initWithTitle:@"VoiceSetting" image:nil selectedImage:nil];
    
    
    [tabbarController setViewControllers:@[historyViewController, contactViewController, keyBoardViewController,voiceSettingController]];
    
    [self.window setRootViewController:tabbarController];
    [self.window makeKeyAndVisible];
    
    return YES;
}
							


@end
